#!/bin/bash

osd_name=`ls /data |grep osd`
echo $osd_name
array=(${osd_name//./ })
osd_id=${array[${#array[@]}-1]}
echo $osd_id
